//
//  FTSideViewCell.m
//  FaceTo
//
//  Created by 姚冬元 on 2017/7/25.
//  Copyright © 2017年 chengbangming. All rights reserved.
//

#import "FTSideViewCell.h"

@implementation FTSideViewCell

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        [self initUI];
    }
    return self;
}

- (void)initUI
{
    self.backgroundColor = WhiteColor;
    
    _imgView = [[UIImageView alloc] init];
//    _imgView.image = [UIImage imageNamed:@"side_more"];
    [self addSubview:_imgView];
    
    _titlelbl = [[UILabel alloc] init];
//    _titlelbl.text = @"课程表";
    _titlelbl.textColor = FontColor;
    _titlelbl.textAlignment = NSTextAlignmentCenter;
    _titlelbl.font = LPFont(12);
    [self addSubview:_titlelbl];
    
    [_imgView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerX.equalTo(self.mas_centerX);
        make.width.mas_equalTo(25);
        make.height.mas_equalTo(25);
        make.top.offset(10);
    }];
    
    [_titlelbl mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerX.equalTo(self.mas_centerX);
        make.top.equalTo(_imgView.mas_bottom).with.offset(7);
    }];
}

@end
